
import React ,{useState} from 'react';
import { View, Text } from 'react-native';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
// import Btn from './common/Btn'
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
import Icon from 'react-native-vector-icons/FontAwesome';
import HomeScreen from './shixun/HomeScreen';
import Release from './shixun/Release'
import Topic from './shixun/Topic'
// import Qian from './note/Qian'
// import Del from './note/Del'

const Stack = createStackNavigator();
const Tab = createBottomTabNavigator();

function App() {
  return (
   
    <NavigationContainer>
      <Stack.Navigator>
        <Stack.Screen 
          options={{
            title:'便签',          
            headerRight:()=><Text style={{marginRight:22,fontSize:18}}>编辑</Text>,           
            
        }}
          name="Home" component={HomeScreen} />         
         <Stack.Screen    
           options={{
            // title:'发帖',  
            headerTitle:()=><Text style={{width:ptd(40),marginLeft:70,marginTop:ptd(10),fontSize:14}}>发帖</Text>        
            // headerRight:()=><Text style={{marginRight:22,fontSize:24}}>√</Text>,           
            
          }}    
          name="Rel" component={Release} /> 
          <Stack.Screen 
          options={{
            headerTitle:()=><Text style={{width:ptd(80),marginLeft:60,marginTop:ptd(10),fontSize:14}}>选择话题</Text> 
          }}
          name="topic" component={Topic} />   
         {/*  <Stack.Screen 
          options={{
            title:'便签',          
            headerRight:()=><Text style={{marginRight:22,fontSize:18}}>编辑</Text>,           
            
        }}
          name="delnow" component={Del} />   */}
    </Stack.Navigator>
  </NavigationContainer>
    
  );
}

export default App;

    